<?php

class process_reciept extends a_base_controller_l_checkout{

    public function __construct() {
        parent::__construct();
    }
    protected function  init_order() {
        $obj = new order_m_order();
        $obj->get_by_id($_SESSION['order_id']);
        $this->order_object = $obj;
    }

    public function __handle_executed_before($is_post_request) {
        $this->view();
    }

    public function __handle_executed_never($is_post_request) {
        $this->stage_executed();
        $this->view();
    }

    public function __handle_invalid_stage(stage_l_checkout $valid_stage) {
        redirect($valid_stage->get_action_url());
    }

    public function stage_id(){
        return "reciept";
    }

}
?>